home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / _com_makingwaves_view_BackgroundViewWatcherSetupUtil.as < prev    next >
Text File  |  2009-12-16  |  2KB  |  38 lines

  1. package
  2. {
  3.    import com.makingwaves.view.BackgroundView;
  4.    import flash.display.Sprite;
  5.    import mx.binding.IWatcherSetupUtil;
  6.    import mx.binding.PropertyWatcher;
  7.    import mx.core.IFlexModuleFactory;
  8.    
  9.    public class _com_makingwaves_view_BackgroundViewWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  10.    {
  11.        
  12.       
  13.       public function _com_makingwaves_view_BackgroundViewWatcherSetupUtil()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       public static function init(param1:IFlexModuleFactory) : void
  19.       {
  20.          BackgroundView.watcherSetupUtil = new _com_makingwaves_view_BackgroundViewWatcherSetupUtil();
  21.       }
  22.       
  23.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  24.       {
  25.          param4[1] = new PropertyWatcher("pomaranczowa",{"propertyChange":true},[param3[1]],param2);
  26.          param4[4] = new PropertyWatcher("kwiatki",{"propertyChange":true},[param3[5]],param2);
  27.          param4[3] = new PropertyWatcher("zielona",{"propertyChange":true},[param3[4],param3[3]],param2);
  28.          param4[2] = new PropertyWatcher("rozowa",{"propertyChange":true},[param3[2]],param2);
  29.          param4[0] = new PropertyWatcher("krata",{"propertyChange":true},[param3[0]],param2);
  30.          param4[1].updateParent(param1);
  31.          param4[4].updateParent(param1);
  32.          param4[3].updateParent(param1);
  33.          param4[2].updateParent(param1);
  34.          param4[0].updateParent(param1);
  35.       }
  36.    }
  37. }
  38.